/*
 * Copyright (c) 2019.  鼎捷软件股份有限公司.All rights reserved.
 */

package com.digiwin.dap.middleware.iam.core;

/**
 * *
 * 2018/12/5
 */
public class GlobalConstants {


    /**
     * 访问凭证
     */
    public static final String DIGI_MIDDLEWARE_AUTH_ACCESS = "digi-middleware-auth-access";
    /**
     * 在HttpHeader中传递的User信息
     */
    public static final String AUTH_USER = "digi-middleware-auth-user-data";
    /**
     * 在HttpHeader中传递的App信息
     */
    public static final String APP = "digi-middleware-auth-app-data";

    /**
     * 在HttpHeader中传递的OTA Token信息
     */
    public static final String HTTP_HEADER_OTA_TOKEN_KEY = "digi-middleware-auth-ota";

    /**
     * 在HttpHeader中传递的Access Token信息
     */
    public static final String HTTP_HEADER_ACCESS_TOKEN_KEY = "digi-middleware-auth-access";

    /**
     * 在HttpHeader中传递的User Token信息
     */
    public static final String HTTP_HEADER_USER_TOKEN_KEY = "digi-middleware-auth-user";

    /**
     * 在HttpHeader中传递的APP Token信息
     */
    public static final String HTTP_HEADER_APP_TOKEN_KEY = "digi-middleware-auth-app";

    /**
     * 在HttpHeader中传递的Driver Token信息
     */
    public static final String HTTP_HEADER_DRIVE_TOKEN_KEY = "digi-middleware-drive-access";


    /**
     * 查询时，若為歸戶資料，請填入固定值: iam-mapping
     */
    public static final String QUERY_PARAMETER_MAPPING = "iam-mapping";
    public static final String ZONE_OFF_SET = "+8";
    public static final String DEV_ACTIVE = "dev";

    public static final String EMPTY_STR = "[empty]";

    public static final String UPDATE_ALL = "all";
    public static final String UPDATE_ONLY_APPEND = "onlyAppend";

    public static final String ADMINISTRATORS = "administrators";
    public static final String ADMINISTRATOR = "administrator";
    public static final String INTEGRATION = "integration";
    public static final String SUPERADMIN = "superadmin";
    public static final String GUEST = "guest";


    public class Meatdata {
        public static final String CONTACT_CATALOG = "contact";

        public static final String MOBILEPHONE = "mobilephone1";

        public static final String MOBILEPHONE_2 = "mobilephone2";

        public static final String WECHAT = "wechat";

        public static final String EMAIL = "email";
    }

}
